package com.allen.module_userinfo

import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.allen.common.WorkBean
import com.zhouwei.mzbanner.holder.MZViewHolder


/**
 *  @Autor  lwl
 *  日期    2021/4/7
 *  目的
 */
class ModuleWorkBannerViewHolder : MZViewHolder<List<WorkBean>> {
    var imageView: ImageView? = null
    override fun onBind(context: Context?, position: Int, data: List<WorkBean>?) {
        imageView!!.setImageResource(R.drawable.zwt)

    }

    override fun createView(context: Context?): View {
        imageView = ImageView(context)
        var pair: ViewGroup.LayoutParams = ViewGroup.LayoutParams(
            ViewGroup.LayoutParams.MATCH_PARENT,
            ViewGroup.LayoutParams.MATCH_PARENT
        )
        imageView!!.layoutParams = pair

        return imageView!!
    }


}